﻿using System.Text;

namespace LxCore
{
    public class TextWriterOnString : ITextWriter
    {
        protected StringBuilder StringBuilder = new StringBuilder();
        public void Write(string str)
        {
            StringBuilder.Append(str);
        }

        //protected override void WriteLine(string str)
        //{
        //    StringBuilder.Append(str);
        //}

        //protected override void WriteLine()
        //{
        //}
        public string GetString()
        {
            return StringBuilder.ToString();
        }
    }
}
